package cn.enzo.yun.domain;

import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonFormat.Shape;

import cn.enzo.utils.ann.TableField;

public class Sale {
	@TableField(desc="id")
	private Integer id;
	
	@TableField(desc="user")
	private Integer userid;
	
	@TableField(desc="invoice")
	private String invoice;
	
	@TableField(desc="type")
	private String type;
	
	@TableField(desc="overmoney")
	private BigDecimal overmoney;
	
	@TableField(desc="sum")
	private Integer sum;
	
	@TableField(desc="redtime")
	private Date redtime;
	
	@TableField(desc="redmoney")
	private BigDecimal redmoney;
	
	@TableField(desc="saletime")
	private Date saletime;
	
	@TableField(desc="createtime")
	private Date createtime;
	
	@TableField(desc="username")
	private String username;
	
	@TableField(desc="storename")
	private String storename;
	
	@TableField(desc="weixin")
	private String weixin;
	
	@TableField(desc="isdelete")
	private Boolean isdelete;
	
	
	
	


	public Boolean getIsdelete() {
		return isdelete;
	}

	public void setIsdelete(Boolean isdelete) {
		this.isdelete = isdelete;
	}

	public String getWeixin() {
		return weixin;
	}

	public void setWeixin(String weixin) {
		this.weixin = weixin;
	}

	
	@JsonFormat(shape=Shape.NUMBER,pattern="#00")
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getInvoice() {
		return invoice;
	}

	public void setInvoice(String invoice) {
		this.invoice = invoice;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public BigDecimal getOvermoney() {
		return overmoney;
	}

	public void setOvermoney(BigDecimal overmoney) {
		this.overmoney = overmoney;
	}

	public Integer getSum() {
		return sum;
	}

	public void setSum(Integer sum) {
		this.sum = sum;
	}

	public Date getRedtime() {
		return redtime;
	}

	public void setRedtime(Date redtime) {
		this.redtime = redtime;
	}

	public BigDecimal getRedmoney() {
		return redmoney;
	}

	public void setRedmoney(BigDecimal redmoney) {
		this.redmoney = redmoney;
	}

	public Date getSaletime() {
		return saletime;
	}

	public void setSaletime(Date saletime) {
		this.saletime = saletime;
	}

	@JsonFormat(pattern="yyyy-MM-dd")
	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getStorename() {
		return storename;
	}

	public void setStorename(String storename) {
		this.storename = storename;
	}
	
	
	
	

}
